package factory;

// 农机抽象类
public abstract class AgriculturalMachine {
    protected String machineId;
    protected String status = "空闲";
    
    public AgriculturalMachine(String machineId) {
        this.machineId = machineId;
    }
    
    public abstract void operate();
    
    public void displayStatus() {
        System.out.println("农机ID: " + machineId + ", 状态: " + status);
    }
    
    public String getMachineId() {
        return machineId;
    }
    
    public String getStatus() {
        return status;
    }
}